I want the set_null_log in particular.
#[cfg_attr(docsrs, doc(cfg(feature = "v2020_4")))]
#[doc(alias = "OSTREE_SIGN_NAME_ED25519")]
pub static SIGN_NAME_ED25519: &GStr = unsafe{GStr::from_utf8_with_nul_unchecked(ffi::OSTREE_SIGN_NAME_ED25519)};
+#[cfg(feature = "v2024_7")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v2024_7")))]
+#[doc(alias = "OSTREE_SIGN_NAME_SPKI")]
+pub static SIGN_NAME_SPKI: &GStr = unsafe{GStr::from_utf8_with_nul_unchecked(ffi::OSTREE_SIGN_NAME_SPKI)};
#[doc(alias = "OSTREE_SUMMARY_GVARIANT_STRING")]
pub static SUMMARY_GVARIANT_STRING: &GStr = unsafe{GStr::from_utf8_with_nul_unchecked(ffi::OSTREE_SUMMARY_GVARIANT_STRING)};
#[doc(alias = "OSTREE_SUMMARY_SIG_GVARIANT_STRING")]
}
//#[doc(alias = "ostree_gpg_verify_result_get")]
- //pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 19 }) -> glib::Variant {
+ //pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 21 }) -> glib::Variant {
// unsafe { TODO: call ffi:ostree_gpg_verify_result_get() }
//}
#[cfg(feature = "v2020_4")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2020_4")))]
pub use self::constants::SIGN_NAME_ED25519;
+#[cfg(feature = "v2024_7")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v2024_7")))]
+pub use self::constants::SIGN_NAME_SPKI;
pub use self::constants::SUMMARY_GVARIANT_STRING;
pub use self::constants::SUMMARY_SIG_GVARIANT_STRING;
pub use self::constants::TREE_GVARIANT_STRING;
//#[doc(alias = "ostree_mutable_tree_get_subdirs")]
//#[doc(alias = "get_subdirs")]
- //pub fn subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 23 } {
+ //pub fn subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 25 } {
// unsafe { TODO: call ffi:ostree_mutable_tree_get_subdirs() }
//}
pub fn rootfs_dfd(&self) -> i32 {
ObjectExt::property(self, "rootfs-dfd")
}
+
+ #[cfg(feature = "v2025_2")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v2025_2")))]
+ #[doc(alias = "ostree_sepolicy_set_null_log")]
+ pub fn set_null_log() {
+ unsafe {
+ ffi::ostree_sepolicy_set_null_log();
+ }
+ }
}
unsafe impl Send for SePolicy {}
}
}
+ //#[cfg(feature = "v2025_2")]
+ //#[cfg_attr(docsrs, doc(cfg(feature = "v2025_2")))]
+ //#[doc(alias = "ostree_sign_read_pk")]
+ //fn read_pk(&self, stream: &impl IsA<gio::InputStream>) -> /*Ignored*/BlobReader {
+ // unsafe { TODO: call ffi:ostree_sign_read_pk() }
+ //}
+
+ //#[cfg(feature = "v2025_2")]
+ //#[cfg_attr(docsrs, doc(cfg(feature = "v2025_2")))]
+ //#[doc(alias = "ostree_sign_read_sk")]
+ //fn read_sk(&self, stream: &impl IsA<gio::InputStream>) -> /*Ignored*/BlobReader {
+ // unsafe { TODO: call ffi:ostree_sign_read_sk() }
+ //}
+
#[cfg(feature = "v2020_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2020_2")))]
#[doc(alias = "ostree_sign_set_pk")]
Generated by gir (https://github.com/gtk-rs/gir @ 5433e2582f83)
-from gir-files (@ b89f209a09cf)
+from gir-files (@ 7a32b86ee4c0)
v2023_11 = ["v2023_8"]
v2025_1 = ["v2024_7"]
v2024_7 = ["v2023_11"]
+v2025_2 = ["v2025_1"]
[lib]
name = "ostree_sys"
[package.metadata.system-deps.ostree_1.v2024_7]
version = "2024.7"
+
+[package.metadata.system-deps.ostree_1.v2025_2]
+version = "2025.2"
Generated by gir (https://github.com/gtk-rs/gir @ 5433e2582f83)
-from gir-files (@ b89f209a09cf)
+from gir-files (@ 7a32b86ee4c0)
pub const OSTREE_SHA256_DIGEST_LEN: c_int = 32;
pub const OSTREE_SHA256_STRING_LEN: c_int = 64;
pub const OSTREE_SIGN_NAME_ED25519: &[u8] = b"ed25519\0";
+pub const OSTREE_SIGN_NAME_SPKI: &[u8] = b"spki\0";
pub const OSTREE_SUMMARY_GVARIANT_STRING: &[u8] = b"(a(s(taya{sv}))a{sv})\0";
pub const OSTREE_SUMMARY_SIG_GVARIANT_STRING: &[u8] = b"a{sv}\0";
pub const OSTREE_TIMESTAMP: c_int = 0;
}
}
+#[derive(Copy, Clone)]
+#[repr(C)]
+pub struct OstreeBlobReaderInterface {
+ pub g_iface: gobject::GTypeInterface,
+ pub read_blob: Option<
+ unsafe extern "C" fn(
+ *mut OstreeBlobReader,
+ *mut gio::GCancellable,
+ *mut *mut glib::GError,
+ ) -> *mut glib::GBytes,
+ >,
+}
+
+impl ::std::fmt::Debug for OstreeBlobReaderInterface {
+ fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
+ f.debug_struct(&format!("OstreeBlobReaderInterface @ {self:p}"))
+ .field("g_iface", &self.g_iface)
+ .field("read_blob", &self.read_blob)
+ .finish()
+ }
+}
+
#[derive(Copy, Clone)]
#[repr(C)]
pub struct OstreeCollectionRef {
}
// Interfaces
+#[repr(C)]
+#[allow(dead_code)]
+pub struct OstreeBlobReader {
+ _data: [u8; 0],
+ _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
+}
+
+impl ::std::fmt::Debug for OstreeBlobReader {
+ fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
+ write!(f, "OstreeBlobReader @ {self:p}")
+ }
+}
+
#[repr(C)]
#[allow(dead_code)]
pub struct OstreeRepoFinder {
error: *mut *mut glib::GError,
) -> *mut OstreeSePolicy;
pub fn ostree_sepolicy_fscreatecon_cleanup(unused: *mut *mut c_void);
+ #[cfg(feature = "v2025_2")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v2025_2")))]
+ pub fn ostree_sepolicy_set_null_log();
#[cfg(feature = "v2016_5")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2016_5")))]
pub fn ostree_sepolicy_get_csum(self_: *mut OstreeSePolicy) -> *const c_char;
error: *mut *mut glib::GError,
) -> gboolean;
+ //=========================================================================
+ // OstreeBlobReader
+ //=========================================================================
+ pub fn ostree_blob_reader_get_type() -> GType;
+ pub fn ostree_blob_reader_read_blob(
+ self_: *mut OstreeBlobReader,
+ cancellable: *mut gio::GCancellable,
+ error: *mut *mut glib::GError,
+ ) -> *mut glib::GBytes;
+
//=========================================================================
// OstreeRepoFinder
//=========================================================================
#[cfg(feature = "v2020_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2020_2")))]
pub fn ostree_sign_metadata_key(self_: *mut OstreeSign) -> *const c_char;
+ #[cfg(feature = "v2025_2")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v2025_2")))]
+ pub fn ostree_sign_read_pk(
+ self_: *mut OstreeSign,
+ stream: *mut gio::GInputStream,
+ ) -> *mut OstreeBlobReader;
+ #[cfg(feature = "v2025_2")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v2025_2")))]
+ pub fn ostree_sign_read_sk(
+ self_: *mut OstreeSign,
+ stream: *mut gio::GInputStream,
+ ) -> *mut OstreeBlobReader;
#[cfg(feature = "v2020_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2020_2")))]
pub fn ostree_sign_set_pk(
alignment: align_of::<OstreeAsyncProgressClass>(),
},
),
+ (
+ "OstreeBlobReaderInterface",
+ Layout {
+ size: size_of::<OstreeBlobReaderInterface>(),
+ alignment: align_of::<OstreeBlobReaderInterface>(),
+ },
+ ),
(
"OstreeChecksumFlags",
Layout {
("OSTREE_SHA256_DIGEST_LEN", "32"),
("OSTREE_SHA256_STRING_LEN", "64"),
("OSTREE_SIGN_NAME_ED25519", "ed25519"),
+ ("OSTREE_SIGN_NAME_SPKI", "spki"),
("(gint) OSTREE_STATIC_DELTA_GENERATE_OPT_LOWLATENCY", "0"),
("(gint) OSTREE_STATIC_DELTA_GENERATE_OPT_MAJOR", "1"),
("(gint) OSTREE_STATIC_DELTA_INDEX_FLAGS_NONE", "0"),
int main() {
printf("%s;%zu;%zu\n", "OstreeAsyncProgressClass", sizeof(OstreeAsyncProgressClass), alignof(OstreeAsyncProgressClass));
+ printf("%s;%zu;%zu\n", "OstreeBlobReaderInterface", sizeof(OstreeBlobReaderInterface), alignof(OstreeBlobReaderInterface));
printf("%s;%zu;%zu\n", "OstreeChecksumFlags", sizeof(OstreeChecksumFlags), alignof(OstreeChecksumFlags));
printf("%s;%zu;%zu\n", "OstreeCollectionRef", sizeof(OstreeCollectionRef), alignof(OstreeCollectionRef));
printf("%s;%zu;%zu\n", "OstreeCollectionRefv", sizeof(OstreeCollectionRefv), alignof(OstreeCollectionRefv));